<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>学生端-我的课程</title>
    <jsp:include page="../header.jsp"></jsp:include>
</head>
<body>
<div class="container">
    <hr>
    <div class="row">
        <div class="col-xs-2 col-md-3">
            <nav aria-label="...">
                <ul class="pager">
                    <li class="previous"><a href="${pageContext.request.contextPath}/student/home.jsp"><span aria-hidden="true">&larr;</span>返回</a></li>
                </ul>
            </nav>
        </div>
        <div class="col-xs-8 col-md-6">
            <div class="list-group">
                <c:forEach items="${requestScope.myCourses}" var="course">
                    <a href="${pageContext.request.contextPath}/student/queryTaskServlet?cid=${course.cid}" class="list-group-item ">
                        <h4 class="list-group-item-heading">课程名：${course.cname}</h4>
                        <p class="list-group-item-text">教师：${course.tname}&nbsp;&nbsp;院系：${course.department}</p>
                    </a>
                    <br>
                </c:forEach>
            </div>
        </div>
    </div>
</div>
<jsp:include page="../footer.jsp"></jsp:include>
</body>
</html>
